﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MeizuSDK.Presentation
{
    internal static class MzUser
    {
        /// SP_NOSIZE -> 0x0001
        public const uint SP_NOSIZE = 1;

        /// SP_NOMOVE -> 0x0002
        public const uint SP_NOMOVE = 2;

        /// UI_SCROLLTO_TOP -> 0
        public const uint UI_SCROLLTO_TOP = 0;

        /// UI_SCROLLTO_BOTTOM -> 1
        public const uint UI_SCROLLTO_BOTTOM = 1;

        /// UI_SCROLLTO_POS -> 2
        public const uint UI_SCROLLTO_POS = 2;

        /// UI_DRAGMODE_FREE -> 0
        public const uint UI_DRAGMODE_FREE = 0;

        /// UI_DRAGMODE_AUTO -> 1
        public const uint UI_DRAGMODE_AUTO = 1;

        /// UI_DRAGMODE_FIXED -> 2
        public const uint UI_DRAGMODE_FIXED = 2;

        /// Warning: Generation of Method Macros is not supported at this time
        /// RECT_WIDTH -> "(rc) ((rc).right-(rc).left)"
        public const string RECT_WIDTH = "(rc) ((rc).right-(rc).left)";

        /// Warning: Generation of Method Macros is not supported at this time
        /// RECT_HEIGHT -> "(rc) ((rc).bottom-(rc).top)"
        public const string RECT_HEIGHT = "(rc) ((rc).bottom-(rc).top)";

        /// Warning: Generation of Method Macros is not supported at this time
        /// RECT_CENTER_H -> "(rc) (((rc).right+(rc).left)/2)"
        public const string RECT_CENTER_H = "(rc) (((rc).right+(rc).left)/2)";

        /// Warning: Generation of Method Macros is not supported at this time
        /// RECT_CENTER_V -> "(rc) (((rc).bottom+(rc).top)/2)"
        public const string RECT_CENTER_V = "(rc) (((rc).bottom+(rc).top)/2)";

        /// MZ_TIMER_ID -> 0x10000000
        public const uint MZ_TIMER_ID = 268435456;

        /// MZ_TIMER_ID_WIN_SCROLL -> (MZ_TIMER_ID+0x00010000)
        public const uint MZ_TIMER_ID_WIN_SCROLL = (MZ_TIMER_ID + 65536);

        /// MZ_TIMER_ID_WIN_HOLD -> (MZ_TIMER_ID+0x00020000)
        public const uint MZ_TIMER_ID_WIN_HOLD = (MZ_TIMER_ID + 131072);

        /// MZ_TIMER_ID_SINGLELINEEDIT -> (MZ_TIMER_ID+0x00030000)
        public const uint MZ_TIMER_ID_SINGLELINEEDIT = (MZ_TIMER_ID + 196608);

        /// MZ_TIMER_ID_MUTILINEEDIT_UP -> (MZ_TIMER_ID+0x00040000)
        public const uint MZ_TIMER_ID_MUTILINEEDIT_UP = (MZ_TIMER_ID + 262144);

        /// MZ_TIMER_ID_MUTILINEEDIT_DOWN -> (MZ_TIMER_ID+0x00050000)
        public const uint MZ_TIMER_ID_MUTILINEEDIT_DOWN = (MZ_TIMER_ID + 327680);

        /// MZ_TIMER_ID_UIGIF -> (MZ_TIMER_ID+0x00060000)
        public const uint MZ_TIMER_ID_UIGIF = (MZ_TIMER_ID + 393216);

        /// MZ_TIMER_ID_DELETE_ANIMATION -> (MZ_TIMER_ID+0x00070000)
        public const uint MZ_TIMER_ID_DELETE_ANIMATION = (MZ_TIMER_ID + 458752);

        /// MZ_TIMER_ID_ITEM_AUTO_MOVE -> (MZ_TIMER_ID+0x00080000)
        public const uint MZ_TIMER_ID_ITEM_AUTO_MOVE = (MZ_TIMER_ID + 524288);

        /// MZ_TIMER_ID_AUTO_MOVING -> (MZ_TIMER_ID+0x00090000)
        public const uint MZ_TIMER_ID_AUTO_MOVING = (MZ_TIMER_ID + 589824);

        /// MZ_TIMER_ID_PAGE_MOVING -> (MZ_TIMER_ID+0x000A0000)
        public const uint MZ_TIMER_ID_PAGE_MOVING = (MZ_TIMER_ID + 655360);

        /// MZ_TIMER_ID_MOUSE_MUTI -> (MZ_TIMER_ID+0x000B0000)
        public const uint MZ_TIMER_ID_MOUSE_MUTI = (MZ_TIMER_ID + 720896);

        /// MZ_TIMER_ID_PASSWORD_EDIT -> (MZ_TIMER_ID+0x000C0000)
        public const uint MZ_TIMER_ID_PASSWORD_EDIT = (MZ_TIMER_ID + 786432);

        /// MZ_TIMER_ID_USER -> (MZ_TIMER_ID+0x00FF0000)
        public const uint MZ_TIMER_ID_USER = (MZ_TIMER_ID + 16711680);

        /// MZ_MESSAGE_TIME_OUT -> 200
        public const uint MZ_MESSAGE_TIME_OUT = 200;

        /// MZFC_WM_MESSAGE -> 0xFFF10000
        public const uint MZFC_WM_MESSAGE = 0xFFF10000;

        /// MZ_WM_COMMAND -> (MZFC_WM_MESSAGE+0x0001)
        public const uint MZ_WM_COMMAND = (MZFC_WM_MESSAGE + 1);

        /// MZ_WM_MOUSE_NOTIFY -> (MZFC_WM_MESSAGE+0x0002)
        public const uint MZ_WM_MOUSE_NOTIFY = (MZFC_WM_MESSAGE + 2);

        /// MZ_MN_LBUTTONDOWN -> 0x0001
        public const uint MZ_MN_LBUTTONDOWN = 1;

        /// MZ_MN_LBUTTONUP -> 0x0002
        public const uint MZ_MN_LBUTTONUP = 2;

        /// MZ_MN_LBUTTONDBLCLK -> 0x0003
        public const uint MZ_MN_LBUTTONDBLCLK = 3;

        /// MZ_MN_MOUSEMOVE -> 0x0004
        public const uint MZ_MN_MOUSEMOVE = 4;

        /// MZ_MN_PRESSEDHOLD_START -> 0x0005
        public const uint MZ_MN_PRESSEDHOLD_START = 5;

        /// MZ_MN_PRESSEDHOLD_TIMEUP -> 0x0006
        public const uint MZ_MN_PRESSEDHOLD_TIMEUP = 6;

        /// MZ_WM_WND_ACTIVATE -> (MZFC_WM_MESSAGE+0x0003)
        public const uint MZ_WM_WND_ACTIVATE = (MZFC_WM_MESSAGE + 3);

        /// Warning: Generation of Method Macros is not supported at this time
        /// MZ_LO12 -> "(l) ((WORD)((DWORD_PTR)(l) & 0xfff))"
        public const string MZ_LO12 = "(l) ((WORD)((DWORD_PTR)(l) & 0xfff))";

        /// Warning: Generation of Method Macros is not supported at this time
        /// MZ_HI20 -> "(l) ((DWORD)((DWORD_PTR)(l) >> 12))"
        public const string MZ_HI20 = "(l) ((DWORD)((DWORD_PTR)(l) >> 12))";

        /// Warning: Generation of Method Macros is not supported at this time
        /// MZ_MAKELPARAM_12_20 -> "(a,b) ((LONG)(((WORD)((DWORD_PTR)(a) & 0xfff)) | ((DWORD)((DWORD)((DWORD_PTR)(b) & 0xfffff))) << 12))"
        public const string MZ_MAKELPARAM_12_20 = "(a,b) ((LONG)(((WORD)((DWORD_PTR)(a) & 0xfff)) | ((DWORD)((DWORD)((DWORD_PTR)(b) " +
            "& 0xfffff))) << 12))";

        /// Warning: Generation of Method Macros is not supported at this time
        /// MZ_LO20 -> "(l) ((DWORD)((DWORD_PTR)(l) & 0xfffff))"
        public const string MZ_LO20 = "(l) ((DWORD)((DWORD_PTR)(l) & 0xfffff))";

        /// Warning: Generation of Method Macros is not supported at this time
        /// MZ_HI12 -> "(l) ((WORD)((DWORD_PTR)(l) >> 20))"
        public const string MZ_HI12 = "(l) ((WORD)((DWORD_PTR)(l) >> 20))";

        /// Warning: Generation of Method Macros is not supported at this time
        /// MZ_MAKELPARAM_20_12 -> "(a,b) ((LONG)(((DWORD)((DWORD_PTR)(a) & 0xfffff)) | ((DWORD)((WORD)((DWORD_PTR)(b) & 0xfff))) << 20))"
        public const string MZ_MAKELPARAM_20_12 = "(a,b) ((LONG)(((DWORD)((DWORD_PTR)(a) & 0xfffff)) | ((DWORD)((WORD)((DWORD_PTR)(b" +
            ") & 0xfff))) << 20))";

        /// MZ_WM_MOUSE_NOTIFY_Y -> (MZFC_WM_MESSAGE+0x0004)
        public const uint MZ_WM_MOUSE_NOTIFY_Y = (MZFC_WM_MESSAGE + 4);

        /// MZ_WM_MOUSE_NOTIFY_X -> (MZFC_WM_MESSAGE+0x0005)
        public const uint MZ_WM_MOUSE_NOTIFY_X = (MZFC_WM_MESSAGE + 5);

        /// MZ_WM_APP_SNAPSHOT -> (MZFC_WM_MESSAGE+0x0006)
        public const uint MZ_WM_APP_SNAPSHOT = (MZFC_WM_MESSAGE + 6);

        /// MZ_WM_WINDOW_SNAPSHOT -> MZ_WM_APP_SNAPSHOT
        public const uint MZ_WM_WINDOW_SNAPSHOT = MZ_WM_APP_SNAPSHOT;

        /// MZ_WM_APP_NCSWITCH -> (MZFC_WM_MESSAGE+0x0007)
        public const uint MZ_WM_APP_NCSWITCH = (MZFC_WM_MESSAGE + 7);

        /// MZ_WM_MOUSE_NOTIFY_SHELL_TASKBAR -> (MZFC_WM_MESSAGE+0x00010)
        public const uint MZ_WM_MOUSE_NOTIFY_SHELL_TASKBAR = (MZFC_WM_MESSAGE + 16);

        /// MZ_WM_UI_FOCUS -> (MZFC_WM_MESSAGE+0x0020)
        public const uint MZ_WM_UI_FOCUS = (MZFC_WM_MESSAGE + 32);

        /// MZ_WM_UI_POSTMESSAGE -> (MZFC_WM_MESSAGE+0x0021)
        public const uint MZ_WM_UI_POSTMESSAGE = (MZFC_WM_MESSAGE + 33);

        /// MZ_WM_LIST_ITEM_DRAG_H -> (MZFC_WM_MESSAGE+0x0030)
        public const uint MZ_WM_LIST_ITEM_DRAG_H = (MZFC_WM_MESSAGE + 48);

        /// MZ_WM_LIST_ITEM_DRAG_H_Y -> (MZFC_WM_MESSAGE+0x0031)
        public const uint MZ_WM_LIST_ITEM_DRAG_H_Y = (MZFC_WM_MESSAGE + 49);

        /// MZ_WM_UI_SCROLL_START -> (MZFC_WM_MESSAGE+0x0042)
        public const uint MZ_WM_UI_SCROLL_START = (MZFC_WM_MESSAGE + 66);

        /// MZ_WM_UI_SCROLL_STOP -> (MZFC_WM_MESSAGE+0x0043)
        public const uint MZ_WM_UI_SCROLL_STOP = (MZFC_WM_MESSAGE + 67);

        /// MZ_WM_SCROLL_PASSBY_ITEM -> (MZFC_WM_MESSAGE+0x0044)
        public const uint MZ_WM_SCROLL_PASSBY_ITEM = (MZFC_WM_MESSAGE + 68);

        /// MZ_WM_UISINGLELINEEDIT -> (MZFC_WM_MESSAGE+0x0045)
        public const uint MZ_WM_UISINGLELINEEDIT = (MZFC_WM_MESSAGE + 69);

        /// MZ_WM_ITEM_ONREMOVE -> (MZFC_WM_MESSAGE+0x0046)
        public const uint MZ_WM_ITEM_ONREMOVE = (MZFC_WM_MESSAGE + 70);

        /// MZ_WM_ITEM_ONSELECTED -> (MZFC_WM_MESSAGE+0x0047)
        public const uint MZ_WM_ITEM_ONSELECTED = (MZFC_WM_MESSAGE + 71);

        /// MZ_MOUSE_DOWN_MOVE -> (MZFC_WM_MESSAGE + 0x0048)
        public const uint MZ_MOUSE_DOWN_MOVE = (MZFC_WM_MESSAGE + 72);

        /// MZ_MOUSE_RELEASED -> (MZFC_WM_MESSAGE + 0x0049)
        public const uint MZ_MOUSE_RELEASED = (MZFC_WM_MESSAGE + 73);

        /// MZ_WM_BOTTOM_TOOLBAR_DRAG_FLYOUT -> (MZFC_WM_MESSAGE+0x0050)
        public const uint MZ_WM_BOTTOM_TOOLBAR_DRAG_FLYOUT = (MZFC_WM_MESSAGE + 80);

        /// MZ_WM_BUTTON_STATE_CHANGED -> (MZFC_WM_MESSAGE + 0x0050)
        public const uint MZ_WM_BUTTON_STATE_CHANGED = (MZFC_WM_MESSAGE + 80);

        /// MZ_WM_UIMUTILINEEDIT_PICCLICK -> (MZFC_WM_MESSAGE + 0x0060)
        public const uint MZ_WM_UIMUTILINEEDIT_PICCLICK = (MZFC_WM_MESSAGE + 96);

        /// MZ_WM_UIEDIT_ADDLINE -> (MZFC_WM_MESSAGE + 0x0061)
        public const uint MZ_WM_UIEDIT_ADDLINE = (MZFC_WM_MESSAGE + 97);

        /// MZ_WM_UIEDIT_BUTTONUP -> (MZFC_WM_MESSAGE + 0x0062)
        public const uint MZ_WM_UIEDIT_BUTTONUP = (MZFC_WM_MESSAGE + 98);

        /// MZ_WM_UIEDIT_TEXT_CHANGE -> (MZFC_WM_MESSAGE + 0x0063)
        public const uint MZ_WM_UIEDIT_TEXT_CHANGE = (MZFC_WM_MESSAGE + 99);

        /// MZ_WM_UIEDIT_SCROLL_UP -> (MZFC_WM_MESSAGE + 0x0064)
        public const uint MZ_WM_UIEDIT_SCROLL_UP = (MZFC_WM_MESSAGE + 100);

        /// MZ_WM_UIEDIT_SCROLL_DOWN -> (MZFC_WM_MESSAGE + 0x0065)
        public const uint MZ_WM_UIEDIT_SCROLL_DOWN = (MZFC_WM_MESSAGE + 101);

        /// MZ_WM_UIMUTILINEEDIT_ADDLINE -> MZ_WM_UIEDIT_ADDLINE
        public const uint MZ_WM_UIMUTILINEEDIT_ADDLINE = MZ_WM_UIEDIT_ADDLINE;

        /// MZ_WM_UIMUTILINEEDIT_NEEDLINE -> (MZFC_WM_MESSAGE + 0x0070)
        public const uint MZ_WM_UIMUTILINEEDIT_NEEDLINE = (MZFC_WM_MESSAGE + 112);

        /// MZ_WM_UIMUTILINEEDIT_BUTTONUP -> MZ_WM_UIEDIT_BUTTONUP
        public const uint MZ_WM_UIMUTILINEEDIT_BUTTONUP = MZ_WM_UIEDIT_BUTTONUP;

        /// MZ_WM_UIMUTILINEEDIT_PASTE -> (MZFC_WM_MESSAGE + 0x0071)
        public const uint MZ_WM_UIMUTILINEEDIT_PASTE = (MZFC_WM_MESSAGE + 113);

        /// MZ_WM_UIMUTILINEEDIT_ADDIMAGE -> (MZFC_WM_MESSAGE + 0x0072)
        public const uint MZ_WM_UIMUTILINEEDIT_ADDIMAGE = (MZFC_WM_MESSAGE + 114);

        /// MZ_WM_UIMUTILINEEDIT_CHANGESCROLL -> (MZFC_WM_MESSAGE + 0x0073)
        public const uint MZ_WM_UIMUTILINEEDIT_CHANGESCROLL = (MZFC_WM_MESSAGE + 115);

        /// MZ_WM_UIMULTILINEEDIT_TEXT_CHANGE -> (MZFC_WM_MESSAGE + 0x0074)
        public const uint MZ_WM_UIMULTILINEEDIT_TEXT_CHANGE = (MZFC_WM_MESSAGE + 116);

        /// MZ_WM_UILIST_LBUTTONDOWN_FIRSTIMAGE -> (MZFC_WM_MESSAGE + 0x0075)
        public const uint MZ_WM_UILIST_LBUTTONDOWN_FIRSTIMAGE = (MZFC_WM_MESSAGE + 117);

        /// MZ_WM_UILIST_LBUTTONDOWN_SECONDIMAGE -> (MZFC_WM_MESSAGE + 0x0076)
        public const uint MZ_WM_UILIST_LBUTTONDOWN_SECONDIMAGE = (MZFC_WM_MESSAGE + 118);

        /// MZ_WM_UILIST_LBUTTONDOWN_DELETECONTROL -> (MZFC_WM_MESSAGE + 0x0077)
        public const uint MZ_WM_UILIST_LBUTTONDOWN_DELETECONTROL = (MZFC_WM_MESSAGE + 119);

        /// MZ_WM_UILIST_LBUTTONUP_SELECT -> (MZFC_WM_MESSAGE + 0x0078)
        public const uint MZ_WM_UILIST_LBUTTONUP_SELECT = (MZFC_WM_MESSAGE + 120);

        /// MZ_WM_UIEDIT_LBUTTONUP_LINK -> (MZFC_WM_MESSAGE + 0x0079)
        public const uint MZ_WM_UIEDIT_LBUTTONUP_LINK = (MZFC_WM_MESSAGE + 121);

        /// MZ_WM_UILIST_HOLDPRESSED_SELECT -> (MZFC_WM_MESSAGE + 0x0080)
        public const uint MZ_WM_UILIST_HOLDPRESSED_SELECT = (MZFC_WM_MESSAGE + 128);

        /// MZ_WM_UILIST_LBUTTONUP_MULTILSELECT -> (MZFC_WM_MESSAGE + 0x0081)
        public const uint MZ_WM_UILIST_LBUTTONUP_MULTILSELECT = (MZFC_WM_MESSAGE + 129);

        /// MZ_WM_UILIST_LBUTTONUP_SELECT_POS -> (MZFC_WM_MESSAGE + 0x0082)
        public const uint MZ_WM_UILIST_LBUTTONUP_SELECT_POS = (MZFC_WM_MESSAGE + 130);

        /// MZ_WM_EMAIL_COM_SENDEND -> (MZFC_WM_MESSAGE + 0x0083)
        public const uint MZ_WM_EMAIL_COM_SENDEND = (MZFC_WM_MESSAGE + 131);

        /// MZ_WM_LIST_UPDATE_MMS_HEIGHT -> 0x0810
        public const uint MZ_WM_LIST_UPDATE_MMS_HEIGHT = 2064;

        /// MZ_WM_LIST_PICCLICK -> 0x0807
        public const uint MZ_WM_LIST_PICCLICK = 2055;

        /// MZ_WM_LIST_MUSICCLICK -> 0x0808
        public const uint MZ_WM_LIST_MUSICCLICK = 2056;

        /// MZ_WM_LIST_VIDEOCLICK -> 0x0809
        public const uint MZ_WM_LIST_VIDEOCLICK = 2057;

        /// MZ_WM_LIST_VCFCLICK -> 0x0812
        public const uint MZ_WM_LIST_VCFCLICK = 2066;

        /// MZ_WM_MMS_PROGRESS -> 0x0852
        public const uint MZ_WM_MMS_PROGRESS = 2130;

        /// MZ_WM_MMS_CANCEL -> 0x0853
        public const uint MZ_WM_MMS_CANCEL = 2131;

        /// MZ_WM_MMS_LINKCLICK -> 0x0854
        public const uint MZ_WM_MMS_LINKCLICK = 2132;

        /// MZ_WM_MMS_DOWNLOAD -> 0x0855
        public const uint MZ_WM_MMS_DOWNLOAD = 2133;

        /// MZ_SMS_NEW_REQUEST -> 0x0870
        public const uint MZ_SMS_NEW_REQUEST = 2160;

        /// MZ_WM_NOTIFY_MSG_ONOFF -> 0x1000
        public const uint MZ_WM_NOTIFY_MSG_ONOFF = 4096;

        /// MZ_WM_TASKMAN_ONOFF -> 0x1001
        public const uint MZ_WM_TASKMAN_ONOFF = 4097;

        /// TASKMAN_SHOW_WND -> 1	define TASKMAN_QUIT_WND		2	define TASKMAN_EXEC_PROG		3	define MZ_WM_DB_CHANGE_MSG		0x1002
        /// Error generating expression: Expression is not parsable.  Treating value as a raw string
        public const string TASKMAN_SHOW_WND = "1\tdefine TASKMAN_QUIT_WND\t\t2\tdefine TASKMAN_EXEC_PROG\t\t3\tdefine MZ_WM_DB_CHANGE_M" +
            "SG\t\t0x1002";

        /// MZ_PHONE_TOPBAR_HEIGHT -> 32
        public const uint MZ_PHONE_TOPBAR_HEIGHT = 32;
    }
}
